package com.shi.yibanjia.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum LogType {

    INSERT(2,"添加"),
    UPDATE(3,"修改"),
    DELETE(4,"删除"),
    OTHER(5,"其他")
    ;
    @EnumValue
    private Integer code;
    @JsonValue
    private String message;

    LogType(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
